﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0032)http://localhost:8080/HouseRent/ -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD><TITLE>云和租房 - 用户登录</TITLE>
    <META content="text/html; charset=utf-8" http-equiv=Content-Type>
    <LINK
            rel=stylesheet type=text/css href="../css/style.css">
    <META name=GENERATOR content="MSHTML 8.00.7601.17514">
    <script type="text/javascript" src="scripts/jquery-1.8.3.js"></script>
    <script src="scripts/jquery.validate.js" type="text/javascript"></script>
    <script src="scripts/validate-methods.js" type="text/javascript"></script>
    <style type="text/css">
        .error{
            color:red;
        }
    </style>
</HEAD>
<BODY>
<DIV id=header class=wrap>
    <DIV id=logo><IMG src="../images/logo.gif"></DIV>
</DIV>
<DIV id=regLogin class=wrap>
    <DIV class=dialog>
        <DIV class=box>
            <H4>用户登录</H4>
            <FORM id=regForm method=post  action=user_login>
                <DIV class=infos>
                    <TABLE class=field>
                        <TBODY>
                        <TR>
                            <TD colSpan=2></TD>
                        </TR>
                        <TR>
                            <TD class=field>用 户 名：</TD>
                            <TD><!-- <input type="text" class="text" name="name" /> --><INPUT
                                    id=user_name class=text type=text name=name></TD>
                        </TR>
                        <TR>
                            <TD class=field>密　　码：</TD>
                            <TD><!-- <input type="password" class="text" name="password" /> --><INPUT
                                    id=user_password class=text type=password name=password></TD>
                        </TR>
                        <tr>
                            <td class="field">验 证 码：</td>
                            <td><input type="text" class="text verycode" name="veryCode"/>
                                <img title="点击图片切换验证码" id="vcodeImgOne" src="yzm">
                            </td>
                        </tr>
                        </TBODY>
                    </TABLE>
                    <DIV class=buttons><INPUT value=登陆 type=submit> <INPUT onclick='document.location="regs.htm"'
                                                                           value=注册 type=button>
                    </DIV>
                </DIV>
            </FORM>
        </DIV>
    </DIV>
</DIV>
<DIV id=footer class=wrap>
    <DL>
        <DT>云和租房 © 2010 云和 京ICP证1000001号</DT>
        <DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD>
    </DL>
</DIV>
</BODY>
<script>

    $("#regForm").validate({
        rules: {
            name: {
                required: true,
            },
            password: {
                required: true,
            },
            veryCode: {
                required: true,
            }
        },
        messages: {
            name: {
                required: "请输入用户名",
            },
            password: {
                required: "请输入密码",
            },
            veryCode: {
                required: "请输入验证码",
            }
        },

        onkeyup: true,
        focusCleanup: true,/*如果是 true 那么当未通过验证的元素获得焦点时，移除错误提示。避免和 focusInvalid 一起用。*/
        success: "valid",
        errorElement:"span",
        onsubmit:true,
        // submitHandler: function (form) {
        //         form.submit();
        // }
    })

        /**
         * 验证码
         */
        $(function () {
            //点击图片切换验证码
            $("#vcodeImgOne").click(function () {
                this.src = "yzm?vl=4&w=160&h=40&t=" + new Date().getTime();
            });
        });

</script>
</HTML>
